<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.10"/>
<title>vphy: xvphy_dp.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="HTML_custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="xlogo_bg.gif"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">vphy
   </div>
   <div id="projectbrief">Xilinx SDK Drivers API Documentation</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Overview</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="globals.html"><span>APIs</span></a></li>
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_14bc92f4b96c8519b376567118ac28b3.html">drivers</a></li><li class="navelem"><a class="el" href="dir_4cf835fb5483fbdcb0e67167565ecb14.html">vphy</a></li><li class="navelem"><a class="el" href="dir_45dd16d915814f4bf44046109f2a3b22.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">xvphy_dp.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Overview</h2>
<div class="textblock"><dl class="section note"><dt>Note</dt><dd>None.</dd></dl>
<pre>
MODIFICATION HISTORY:</pre><pre>Ver   Who  Date     Changes
----- ---- -------- -----------------------------------------------
1.0   vkd  10/19/15 Initial release.
</pre> </div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a2cd0f5a7bf8d8fb14c73dff670c3c998"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xvphy__dp_8c.html#a2cd0f5a7bf8d8fb14c73dff670c3c998">XVphy_DpInitialize</a> (<a class="el" href="struct_x_vphy.html">XVphy</a> *InstancePtr, <a class="el" href="struct_x_vphy___config.html">XVphy_Config</a> *CfgPtr, u8 QuadId, <a class="el" href="xvphy_8h.html#abaf929d37e9f193c5577e3a08b50c950">XVphy_PllRefClkSelType</a> CpllRefClkSel, <a class="el" href="xvphy_8h.html#abaf929d37e9f193c5577e3a08b50c950">XVphy_PllRefClkSelType</a> QpllRefClkSel, <a class="el" href="xvphy_8h.html#abd3d50bbadd64dbfb763e97759a02624">XVphy_PllType</a> TxPllSelect, <a class="el" href="xvphy_8h.html#abd3d50bbadd64dbfb763e97759a02624">XVphy_PllType</a> RxPllSelect, u8 LinkRate)</td></tr>
<tr class="separator:a2cd0f5a7bf8d8fb14c73dff670c3c998"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1467ac8d01eee6591cee4c820d55c093"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xvphy__dp_8c.html#a1467ac8d01eee6591cee4c820d55c093">XVphy_DpDebugInfo</a> (<a class="el" href="struct_x_vphy.html">XVphy</a> *InstancePtr, u8 QuadId, <a class="el" href="xvphy_8h.html#a535e4dd9425d8b7818e02930ce9e2b8e">XVphy_ChannelId</a> ChId)</td></tr>
<tr class="separator:a1467ac8d01eee6591cee4c820d55c093"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a1467ac8d01eee6591cee4c820d55c093"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XVphy_DpDebugInfo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_vphy.html">XVphy</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>QuadId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="xvphy_8h.html#a535e4dd9425d8b7818e02930ce9e2b8e">XVphy_ChannelId</a>&#160;</td>
          <td class="paramname"><em>ChId</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function prints Vphy debug information on STDIO/Uart console. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the Vphy core instance. </td></tr>
    <tr><td class="paramname">QuadId</td><td>is the GT quad ID to operate on. </td></tr>
    <tr><td class="paramname">ChId</td><td>is the channel ID to operate on.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_vphy.html#a2a6689916034622640568869fd0ce86b">XVphy::Quads</a>, <a class="el" href="struct_x_vphy___channel.html#ada3cc8b765b058c1ba28cc333f88929b">XVphy_Channel::RxDataRefClkSel</a>, <a class="el" href="struct_x_vphy___channel.html#ade5f05b304aa05b950d87d47f80e4415">XVphy_Channel::RxOutDiv</a>, <a class="el" href="struct_x_vphy___channel.html#a53154b4333f2b5e8d59da3247d951725">XVphy_Channel::TxDataRefClkSel</a>, <a class="el" href="struct_x_vphy___channel.html#aaafc665df3c92c64dde9bdb9b3ea9755">XVphy_Channel::TxOutDiv</a>, <a class="el" href="xvphy_8h.html#a11be9fb60860466de1747a062ac1a919a230046f4a0b3321064c133ead87ce2ea">XVPHY_GT_STATE_ALIGN</a>, <a class="el" href="xvphy_8h.html#a11be9fb60860466de1747a062ac1a919a8af6950c69438f65bef20ec1ec395c5d">XVPHY_GT_STATE_IDLE</a>, <a class="el" href="xvphy_8h.html#a11be9fb60860466de1747a062ac1a919abd3df6a0b11e0c4dd9250f995cf528d2">XVPHY_GT_STATE_LOCK</a>, <a class="el" href="xvphy_8h.html#a11be9fb60860466de1747a062ac1a919a5011c615c5b46d321d92c7cd16870138">XVPHY_GT_STATE_READY</a>, and <a class="el" href="xvphy_8h.html#a11be9fb60860466de1747a062ac1a919aca296f5c524808bcb196136845316aec">XVPHY_GT_STATE_RESET</a>.</p>

</div>
</div>
<a class="anchor" id="a2cd0f5a7bf8d8fb14c73dff670c3c998"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u32 XVphy_DpInitialize </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_vphy.html">XVphy</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_x_vphy___config.html">XVphy_Config</a> *&#160;</td>
          <td class="paramname"><em>CfgPtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>QuadId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="xvphy_8h.html#abaf929d37e9f193c5577e3a08b50c950">XVphy_PllRefClkSelType</a>&#160;</td>
          <td class="paramname"><em>CpllRefClkSel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="xvphy_8h.html#abaf929d37e9f193c5577e3a08b50c950">XVphy_PllRefClkSelType</a>&#160;</td>
          <td class="paramname"><em>QpllRefClkSel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="xvphy_8h.html#abd3d50bbadd64dbfb763e97759a02624">XVphy_PllType</a>&#160;</td>
          <td class="paramname"><em>TxPllSelect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="xvphy_8h.html#abd3d50bbadd64dbfb763e97759a02624">XVphy_PllType</a>&#160;</td>
          <td class="paramname"><em>RxPllSelect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>LinkRate</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function initializes the Video PHY for DisplayPort. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_vphy.html" title="The XVphy driver instance data. ">XVphy</a> instance. </td></tr>
    <tr><td class="paramname">CfgPtr</td><td>is a pointer to the configuration structure that will be used to copy the settings from. </td></tr>
    <tr><td class="paramname">QuadId</td><td>is the GT quad ID to operate on. </td></tr>
    <tr><td class="paramname">CpllRefClkSel</td><td>is the CPLL reference clock selection for the quad. </td></tr>
    <tr><td class="paramname">QpllRefClkSel</td><td>is the QPLL reference clock selection for the quad. </td></tr>
    <tr><td class="paramname">TxPllSelect</td><td>is the reference clock selection for the quad's TX PLL dividers. </td></tr>
    <tr><td class="paramname">RxPllSelect</td><td>is the reference clock selection for the quad's RX PLL dividers. </td></tr>
    <tr><td class="paramname">LinkRate</td><td>is the line rate to set for the quad's channels.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>XST_SUCCESS.</li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_vphy___config.html#a7faad17b4e5499340323e06281c3e4d1">XVphy_Config::BaseAddr</a>, <a class="el" href="struct_x_vphy.html#a45ad21128fb62d2f120e92ae3488c32c">XVphy::Config</a>, <a class="el" href="struct_x_vphy.html#a350b0f93bf83f2b3178e46e11936aa7f">XVphy::IsReady</a>, <a class="el" href="struct_x_vphy.html#a2a6689916034622640568869fd0ce86b">XVphy::Quads</a>, <a class="el" href="struct_x_vphy___channel.html#a5b7f879a1a528acb5a521d5a507eb6e6">XVphy_Channel::RxState</a>, <a class="el" href="struct_x_vphy___channel.html#a2af222f1d1a58d408cb49b133b91126e">XVphy_Channel::TxState</a>, <a class="el" href="struct_x_vphy___config.html#a9bdda7f6198220dbf4e388402d94b93a">XVphy_Config::XcvrType</a>, <a class="el" href="xvphy_8c.html#ab55e996530660070928db7d1e495d3b4">XVphy_CfgInitialize()</a>, <a class="el" href="xvphy_8c.html#a6a2581f0747aefb63cf91a136a03852c">XVphy_CfgQuadRefClkFreq()</a>, <a class="el" href="xvphy_8h.html#a11be9fb60860466de1747a062ac1a919a8af6950c69438f65bef20ec1ec395c5d">XVPHY_GT_STATE_IDLE</a>, <a class="el" href="xvphy_8h.html#a854725cac309c3302a25dbc29927c9f8">XVphy_IntrDisable()</a>, <a class="el" href="xvphy_8h.html#a850b903da34740657782f29d2f142862a13b0c0b1dd1f7290d956d5cecd143739">XVPHY_LOG_EVT_INIT</a>, <a class="el" href="xvphy_8h.html#aeab6f13c2dd0b30889e09de7ff2759df">XVphy_LogReset()</a>, <a class="el" href="xvphy_8h.html#a9a04f2b6dd2fd863b0c282a1d7a5c378">XVphy_LogWrite()</a>, <a class="el" href="xvphy_8c.html#a01775c74632e81c26fb4b2dd8fa3e3ac">XVphy_PllInitialize()</a>, <a class="el" href="xvphy_8c.html#a03e3adda3a9a41ade009735ab5849b8f">XVphy_Set8b10b()</a>, <a class="el" href="xvphy_8c.html#ab4dbca672563dce677d06d7bbbbe23d9">XVphy_SetRxLpm()</a>, <a class="el" href="xvphy_8c.html#a4071a10340c3cda8cfb3aa3bfb4483e9">XVphy_SetTxPreEmphasis()</a>, and <a class="el" href="xvphy_8c.html#a7526bb0de496313d804798dcc1df8cc8">XVphy_SetTxVoltageSwing()</a>.</p>

</div>
</div>
</div><!-- contents -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Copyright &copy; 2015 Xilinx Inc. All rights reserved.</li>
  </ul>
</div>
</body>
</html>
